package com.caishi.lkx.user.mapper;

import com.caishi.lkx.user.model.ChannelBusinessModel;
import com.zzw.common.entity.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ChannelBusinessMapper extends IBaseMapper<ChannelBusinessModel, String> {

    /**
     * <p>
     * <h3>作者 keray</h3>
     * <h3>时间： 2019/10/23 17:45</h3>
     * 查询基础用户
     * </p>
     *
     * @param offset
     * @param size
     * @param param  name
     *               mobile
     *               keyword 搜索关键字
     *               code 渠道商code
     * @return <p> {@link List < UserModel>} </p>
     * @throws
     */
    List<ChannelBusinessModel> searchUser(@Param("offset") Long offset, @Param("size") Long size, @Param("param") Map<String, Object> param,
                                 @Param("asc") List<String> asc,
                                 @Param("desc") List<String> desc);

    /**
     * <p>
     * <h3>作者 keray</h3>
     * <h3>时间： 2019/10/23 18:13</h3>
     * 查询基础用户 total
     * </p>
     *
     * @param param
     * @return <p> {@link long} </p>
     * @throws
     */
    long searchUserCount(@Param("param") Map<String, Object> param);

}
